package com.ketangpai.mapper;

import com.ketangpai.entity.response.Course;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * @author jiahao
 * @date 2024/2/18 13:55
 */

public interface TeacherMapper {
    @Select("select courseId from user_course where account = #{account} and status = #{status}")
    List<String> getAccount(@Param("account") int account, @Param("status") String status);
    @SelectProvider(type = CourseSqlProvider.class, method = "getCourses")
    List<Course> getCourses(@Param("courseIds") List<String> courseIds);
}
